<?php
namespace app\common\validate;

use \app\extra\BaseValidate;

class VoteInfo extends BaseValidate
{
    protected $rule = [
        'title|活动标题' =>[
            'require',
            'length' => '0,200'
        ],
        'start_time|开始时间' =>[
            'require',
        ],
        'end_time|结束时间' =>[
            'require',
        ],
        'vote_type|投票类型' =>[
            'require',
        ],
        'period|投票周期' =>[
            'require',
        ],
        'sort_way|排序方式' =>[
            'require',
        ],
        'sort_way|排序方式' =>[
            'require',
        ],
        'images|图片' =>[
            'require',
        ],
    ];
    protected $scene = [];
}